new Vue({
    el: '#app',
    data: {
        msg: '233',
        menuList: []
    },
    mounted: function() {

        //异步取回
        var menuArr = [{
            menuName: '常规申报',
            iconBgCls: 'bg_5CADFF',
            // iconCls: 'fa-car',
            iconImgUrl: '../static/images/deskCloud/常规申报.png',
            isTop: true,
            groupId: 1,
            groupName: '常规申报',
            toDel: false,
            toAdd: false
        }, {
            menuName: '变更申请',
            iconBgCls: 'bg_A094EA',
            // iconCls: 'fa-twitter',
            iconImgUrl: '../static/images/deskCloud/变更申请.png',
            isTop: false,
            groupId: 1,
            groupName: '常规申报',
            toDel: false,
            toAdd: false
        }, {
            menuName: '注销申请',
            iconBgCls: 'bg_5BD9C5',
            //iconCls: 'fa-twitter',
            iconImgUrl: '../static/images/deskCloud/注销申请.png',
            isTop: false,
            groupId: 1,
            groupName: '常规申报',
            toDel: false,
            toAdd: false
        }, {
            menuName: '失效申明',
            iconBgCls: 'bg_5ED5F3',
            //iconCls: 'fa-twitter',
            iconImgUrl: '../static/images/deskCloud/失效声明.png',
            isTop: false,
            groupId: 1,
            groupName: '常规申报',
            toDel: false,
            toAdd: false
        }, {
            menuName: '字体图标',
            iconBgCls: 'bg_5ED5F3',
            iconCls: 'fa-twitter',
            iconImgUrl: '',
            isTop: false,
            groupId: 1,
            groupName: '常规申报',
            toDel: false,
            toAdd: false
        }, {
            menuName: '变更申请',
            iconBgCls: 'bg_A094EA',
            // iconCls: 'fa-car',
            iconImgUrl: '../static/images/deskCloud/变更申请.png',
            isTop: false,
            groupId: 2,
            groupName: '简易申报',
            toDel: false,
            toAdd: false
        }, {
            menuName: '注销申请',
            iconBgCls: 'bg_5BD9C5',
            // iconCls: 'fa-twitter',
            iconImgUrl: '../static/images/deskCloud/注销申请.png',
            isTop: false,
            groupId: 2,
            groupName: '简易申报',
            toDel: false,
            toAdd: false
        }, {
            menuName: '失效声明',
            iconBgCls: 'bg_5ED5F3',
            // iconCls: 'fa-car',
            iconImgUrl: '../static/images/deskCloud/失效声明.png',
            isTop: false,
            groupId: 2,
            groupName: '简易申报',
            toDel: false,
            toAdd: false
        }, {
            menuName: '变更申请',
            iconBgCls: 'bg_A094EA',
            // iconCls: 'fa-twitter',
            iconImgUrl: '../static/images/deskCloud/变更申请.png',
            isTop: false,
            groupId: 3,
            groupName: '科研备案',
            toDel: false,
            toAdd: false
        }];

        this.menuList = menuArr;
    },
    methods: {
        getGroupList: function() {
            return _.groupBy(this.menuList, function(item) { return item.groupName; });
        }
    }
});